package cn.snoworld.service;

import cn.snoworld.entity.Picture;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author zxj
 * 上传图片服务层
 */
public interface FileUploadService extends IService<Picture> {

    /**
     * 文件上传接口
     *
     * @param file 文件
     * @return Boolean
     */
    Boolean upload(MultipartFile file) throws IOException;

}
